package com.ruizhong.remotehelper.util;

import androidx.annotation.NonNull;

public class UserEvent {
    private int inputType;
    private double mouseX;
    private double mouseY;
    private int localBitWidth;
    private int localBitHeight;
    private String textContent;
    private int keyCode;

    public UserEvent(int inputType, double mouseX, double mouseY,int localBitWidth,int localBitHeight){
        this.inputType=inputType;
        this.mouseX=mouseX;
        this.mouseY=mouseY;
        this.localBitWidth=localBitWidth;
        this.localBitHeight=localBitHeight;
    }

    public UserEvent(int inputType,String s){
        this.inputType=inputType;
        this.textContent=s;
    }

    public UserEvent(int inputType){
        this.inputType=inputType;
    }

    public UserEvent(int inputType,int keyCode){
        this.inputType=inputType;
        this.keyCode=keyCode;
    }

    @Override
    public String toString() {
        return "UserEvent{" +
                "inputType=" + inputType +
                ", mouseX=" + mouseX +
                ", mouseY=" + mouseY +
                ", localBitWidth=" + localBitWidth +
                ", localBitHeight=" + localBitHeight +
                ", textContent='" + textContent + '\'' +
                ", keyCode=" + keyCode +
                '}';
    }
}
